package com.tanhua.commons.utils;

import java.util.Calendar;

public class TimeGet {
    public static Long getTime(){
        Calendar cal = Calendar.getInstance();
        cal.add(Calendar.DAY_OF_YEAR, 1);
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.MILLISECOND, 0);
        long timeInMillis = cal.getTimeInMillis();
        long l = System.currentTimeMillis();
        return (timeInMillis-l);
    }
}